package com.zx.retrofit2andRxJava2.viewHolder;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zx.retrofit2andRxJava2.R;

public class ActivityMainHolder {
    private LinearLayout activityMain;
    private TextView userIdTv;
    private TextView userNameTv;
    private TextView orderIdTv;
    private TextView orderNameTv;

    public ActivityMainHolder(View view) {
        activityMain = (LinearLayout) view.findViewById(R.id.activity_main);
        userIdTv = (TextView) activityMain.findViewById(R.id.user_id_tv);
        userNameTv = (TextView) activityMain.findViewById(R.id.user_name_tv);
        orderIdTv = (TextView) activityMain.findViewById(R.id.order_id_tv);
        orderNameTv = (TextView) activityMain.findViewById(R.id.order_name_tv);
    }

    public TextView getOrderIdTv() {
        return orderIdTv;
    }

    public LinearLayout getActivityMain() {
        return activityMain;
    }

    public TextView getUserIdTv() {
        return userIdTv;
    }

    public TextView getOrderNameTv() {
        return orderNameTv;
    }

    public TextView getUserNameTv() {
        return userNameTv;
    }
}
